package com.systemCapacity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.systemCapacity.common.dto.BattleTaskDto;
import com.systemCapacity.common.dto.RelatedBattleTaskDto;
import com.systemCapacity.entity.BattleTask;

import java.util.List;

public interface BattleTaskService extends IService<BattleTask> {

    IPage<BattleTask> getTaskPage(int page, int size);

    boolean taskExist(String taskId);

    boolean taskNameExist(String taskName);

    boolean deleteTsk(String taskId);

    List<RelatedBattleTaskDto> getRelatedBattleTask(String capacityId);

    void saveTask(BattleTaskDto taskDto);

    void editTask(BattleTaskDto taskDto);
    BattleTaskDto getTaskDetail(String taskId);
}
